<if condition="empty($comment['comment'])">
  <li class="am-comment">暂无评论！</li>
  <else />
  <volist name="comment['comment']" id="vo">
    <li class="am-comment">
      <div class="am-comment-main">
        <header class="am-comment-hd"> <a href="#"><img src="/{$vo['userPhoto']}" class="am-comment-avatar" alt=""/></a>
          <div class="am-comment-meta">
            <time class="am-fr" datetime="">{$vo['createTime']}</time>
            <a href="#link-to-user" class="am-comment-author">{$vo['userName']}</a> </div>
        </header>
        <div class="grade am-cf">评分：
          <?php for($i =0; $i < $vo['goodsScore']; $i++){ ?>
          <i class="am-icon-star"></i>
          <?php } ?>
        </div>
        <div class="am-comment-bd">{$vo['content']}</div>
        <!-- 评论内容 --> 
      </div>
    </li>
  </volist>
</if>
<ul data-am-widget="pagination" class="am-pagination am-pagination-select">
<if condition="$comment['current'] != 1">
  <li class="am-pagination-prev "> <a href="javascript:;" class="" onClick="prevPage()">上一页</a> </li>
  </if>
  <li class="am-pagination-select">
    <select>
      <option value="#" class="">{$comment['current']} / {$comment['sumpage']} </option>
    </select>
  </li>
  <if condition="$comment['current'] != $comment['sumpage']">
  <li class="am-pagination-next "> <a href="javascript:;" class="" onClick="nextPage()">下一页</a> </li>
  </if>
</ul>
<input type="hidden" id="current" value="{$comment['current']}" />
